//
//  MMMMEditorCell.m
//  zhihuDaily
//
//  Created by li  bo on 16/6/12.
//  Copyright © 2016年 cc. All rights reserved.
//

#import "MMMMEditorCell.h"
#import "MMEditorModel.h"
@interface MMMMEditorCell ()
@property (weak, nonatomic) IBOutlet UIImageView *avatarImageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *bioLabel;

@end
@implementation MMMMEditorCell

- (void)awakeFromNib {
    self.avatarImageView.layer.cornerRadius = 24;
    self.avatarImageView.clipsToBounds = YES;

}

- (void)setEditorModel:(MMEditorModel *)editorModel
{
    _editorModel = editorModel;
    self.nameLabel.text = editorModel.name;
    self.bioLabel.text = editorModel.bio;
    [self.avatarImageView sd_setImageWithURL:[NSURL URLWithString:editorModel.avatar]];
    self.nameLabel.dk_textColorPicker = DKColorPickerWithKey(TEXT);


}

@end
